package com.yxw.yx_hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2024-01-17 16:45:00 
 * @description 宿舍床位 
 */
@Data
@TableName(value ="yx_room_bed")
@ApiModel(value = "宿舍床位" , description="yx_room_bed")
public class YxRoomBedEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "bed_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="床位ID")
    private Long bedId;

    @TableField(value="bed_name")
    @ApiModelProperty(value="床位名称")
    private String bedName;

    @TableField(value="room_id")
    @ApiModelProperty(value="所属宿舍ID")
    private Long roomId;

    @TableField(value="room_name")
    @ApiModelProperty(value="所属宿舍名称")
    private String roomName;

    @TableField(value="status")
    @ApiModelProperty(value="状态 0：待住  1：已住  2：空闲")
    private Integer status;

    @TableField(value="create_id")
    @ApiModelProperty(value="创建人ID")
    private Long createId;

    @TableField(value="create_name")
    @ApiModelProperty(value="创建人")
    private String createName;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="tenant_id")
    @ApiModelProperty(value="租户ID")
    private Long tenantId;
}
